home *** CD-ROM | disk | FTP | other *** search
-
-
-
- mmmmbbbbrrrrcccchhhhaaaarrrr((((3333SSSS)))) mmmmbbbbrrrrcccchhhhaaaarrrr((((3333SSSS))))
-
-
-
- NNNNAAAAMMMMEEEE
- _mmmm_bbbb_rrrr_cccc_hhhh_aaaa_rrrr: _mmmm_bbbb_rrrr_llll_eeee_nnnn, _mmmm_bbbb_rrrr_tttt_oooo_wwww_cccc, _wwww_cccc_rrrr_tttt_oooo_mmmm_bbbb, _bbbb_tttt_oooo_wwww_cccc, _wwww_cccc_tttt_oooo_bbbb, _mmmm_bbbb_ssss_iiii_nnnn_iiii_tttt - multibyte
- character handling (restartable)
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- _####_iiii_nnnn_cccc_llll_uuuu_dddd_eeee _<<<<_wwww_cccc_hhhh_aaaa_rrrr_...._hhhh_>>>>
-
- _ssss_iiii_zzzz_eeee______tttt _mmmm_bbbb_rrrr_llll_eeee_nnnn _((((_cccc_oooo_nnnn_ssss_tttt _cccc_hhhh_aaaa_rrrr _****_ssss_,,,, _ssss_iiii_zzzz_eeee______tttt _nnnn_,,,, _mmmm_bbbb_ssss_tttt_aaaa_tttt_eeee______tttt _****_pppp_ssss_))))_;;;;
- _ssss_iiii_zzzz_eeee______tttt _mmmm_bbbb_rrrr_tttt_oooo_wwww_cccc _((((_wwww_cccc_hhhh_aaaa_rrrr______tttt _****_pppp_wwww_cccc_,,,, _cccc_oooo_nnnn_ssss_tttt _cccc_hhhh_aaaa_rrrr _****_ssss_,,,, _ssss_iiii_zzzz_eeee______tttt _nnnn_,,,, _mmmm_bbbb_ssss_tttt_aaaa_tttt_eeee______tttt _****_pppp_ssss_))))_;;;;
- _ssss_iiii_zzzz_eeee______tttt _wwww_cccc_rrrr_tttt_oooo_mmmm_bbbb _((((_cccc_hhhh_aaaa_rrrr _****_ssss_,,,, _wwww_cccc_hhhh_aaaa_rrrr______tttt _wwww_cccc_hhhh_aaaa_rrrr_,,,, _mmmm_bbbb_ssss_tttt_aaaa_tttt_eeee______tttt _****_pppp_ssss_))))_;;;;
- _wwww_iiii_nnnn_tttt______tttt _bbbb_tttt_oooo_wwww_cccc_((((_iiii_nnnn_tttt _cccc_))))_;;;;
- _iiii_nnnn_tttt _wwww_cccc_tttt_oooo_bbbb_((((_wwww_iiii_nnnn_tttt______tttt _cccc_))))_;;;;
- _iiii_nnnn_tttt _mmmm_bbbb_ssss_iiii_nnnn_iiii_tttt_((((_cccc_oooo_nnnn_ssss_tttt _mmmm_bbbb_ssss_tttt_aaaa_tttt_eeee______tttt _****_pppp_ssss_))))_;;;;
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- The _mmmm_bbbb_rrrr_llll_eeee_nnnn function determines the number of bytes that comprise the
- multibyte character pointed to by _s, if _s is not a null pointer. The
- _mmmm_bbbb_rrrr_llll_eeee_nnnn function uses its own internal _m_b_s_t_a_t_e__t object if _p_s is a null
- pointer, which is initialized at program startup. Otherwise, the
- _m_b_s_t_a_t_e__t object pointed to by _p_s is used to retain the current
- conversion state of the multibyte character sequence. The _mmmm_bbbb_rrrr_llll_eeee_nnnn
- function returns 0 if the next _n or fewer bytes comprise the character
- that corresponds to the null wide character, or it returns the positive
- value of the number of bytes if the next _n or fewer bytes comprise a
- valid multibyte character. Also, if all _n bytes have been processed and
- the _n bytes contribute to an incomplete but potentially valid multibyte
- character, it returns (size_t)-2. When an encoding error occurs, and the
- next _n or fewer bytes do not contribute to a valid multibyte character,
- it returns (size_t)-1, EILSEQ is stored in errno and the conversion state
- is undefined.
-
- The _mmmm_bbbb_rrrr_tttt_oooo_wwww_cccc function converts the multibyte character to a wide character
- and places the result in the object pointed to by _p_w_c. (The value of the
- wide character corresponding to the null character is zero.)
- The _mmmm_bbbb_rrrr_tttt_oooo_wwww_cccc function is equivalent to the call:
- _mmmm_bbbb_rrrr_tttt_oooo_wwww_cccc_((((_NNNN_UUUU_LLLL_LLLL_,,,, _""""_""""_,,,, _1111_,,,, _pppp_ssss_))))_;;;;
- if _s is a null pointer. The values of _p_w_c and _n are ignored.
- If _s is not a null pointer, the _mmmm_bbbb_rrrr_tttt_oooo_wwww_cccc function processes at most _n
- bytes beginning at the byte pointed to by _s to calculate the number of
- bytes needed to comprise the next multibyte character. If _mmmm_bbbb_rrrr_tttt_oooo_wwww_cccc finds
- that the next multibyte character is valid, it determines the
- corresponding wide character value and stores the value in the wide
- character string object pointed to by _p_w_c, if _p_w_c is not a null pointer.
- If the corresponding wide character is a null wide character, the
- conversion state is initialized. The _mmmm_bbbb_rrrr_tttt_oooo_wwww_cccc function uses its own
- internal _m_b_s_t_a_t_e__t object if _p_s is a null pointer, which is initialized
- at program startup. Otherwise, the _m_b_s_t_a_t_e__t object pointed to by _p_s is
- used to retain the current conversion state of the multibyte character
- sequence.
- The _mmmm_bbbb_rrrr_tttt_oooo_wwww_cccc function returns 0, if the next _n or fewer bytes comprise the
- character that corresponds to a null wide character, or it returns the
- positive value of the number of bytes if the next _n or fewer bytes
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- mmmmbbbbrrrrcccchhhhaaaarrrr((((3333SSSS)))) mmmmbbbbrrrrcccchhhhaaaarrrr((((3333SSSS))))
-
-
-
- comprise a valid multibyte character. The corresponding wide character
- value is stored in the object pointed to by _p_w_c, in those cases.
- Also, if all _n bytes have been processed and the _n bytes contribute to an
- incomplete but potentially valid multibyte character, it returns
- (size_t)-2. When an encoding error occurs, and the next _n or fewer bytes
- do not contribute to a valid multibyte character, it returns (size_t)-1,
- EILSEQ is stored in errno and the conversion state is undefined. In those
- cases, no value is stored in the object pointed to by _p_w_c.
-
- The _wwww_cccc_rrrr_tttt_oooo_mmmm_bbbb function determines the number of bytes needed to represent
- the multibyte character corresponding to the code whose value is _w_c_h_a_r,
- and, if _s is not a null pointer, stores the multibyte character
- representation in the array pointed to by _s. The _wwww_cccc_rrrr_tttt_oooo_mmmm_bbbb function is
- equivalent to the call:
- _wwww_cccc_rrrr_tttt_oooo_mmmm_bbbb_((((_bbbb_uuuu_ffff_,,,, _LLLL_'''' _''''_,,,, _pppp_ssss_))))_;;;;
- if _s is a null pointer. (Where _b_u_f is an internal buffer.)
- If _s is not a null pointer, _wwww_cccc_rrrr_tttt_oooo_mmmm_bbbb calculates the number of bytes needed
- to represent the character corresponding to the wide character _w_c_h_a_r, and
- stores the resulting bytes in the multibyte string object pointed to by
- _s. At most MB_CUR_MAX bytes are stored. If _w_c_h_a_r is a null wide
- character, a null byte is stored and the conversion state is initialized.
- If _p_s is a null pointer, _wwww_cccc_rrrr_tttt_oooo_mmmm_bbbb uses its own internal mbstate_t object,
- which is initialised at program startup. Otherwise, the mbstate_t object
- pointed to by _p_s is used. The _wwww_cccc_rrrr_tttt_oooo_mmmm_bbbb function returns the number of
- bytes stored in the multibyte string object. When _w_c_h_a_r is not a valid
- wide character, an encoding error occurs, and the function returns
- (size_t)-1. In that case, EILSEQ is stored in errno and the conversion
- state is undefined.
-
- The _bbbb_tttt_oooo_wwww_cccc function determines if _c comprises a valid multibyte character
- which has only one byte. If _c has the value of EOF or does not comprise a
- valid character, the function returns WEOF. Otherwise, it returns the
- wide character value of the character.
-
- The _wwww_cccc_tttt_oooo_bbbb function determines if _c corresponds to one of the extended
- character sets in which the multibyte character has only one byte. If _c
- does not correspond to a multibyte character that has only one byte, it
- returns EOF. Otherwise, it returns the single byte character value of
- the character.
-
- The _mmmm_bbbb_ssss_iiii_nnnn_iiii_tttt function determines if the mbstate_t object pointed to by _p_s
- describes an initial conversion state. It returns a nonzero value if _p_s
- is a null pointer or if the conversion state object describes an initial
- state. Otherwise, it returns zero.
-
- NNNNOOOOTTTTEEEESSSS
- The behaviour of those functions is affected by the LC_CTYPE category of
- the current locale. (Stateful encodings are not supported in IRIX.)
- Those functions are supported in n32 and 64 bit C Libraries for IRIX
- 6.5.17 and later versions.
-
-
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-
-
-
- mmmmbbbbrrrrcccchhhhaaaarrrr((((3333SSSS)))) mmmmbbbbrrrrcccchhhhaaaarrrr((((3333SSSS))))
-
-
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- _wwww_cccc_hhhh_rrrr_tttt_bbbb_llll(1M), _mmmm_bbbb_cccc_hhhh_aaaa_rrrr(3C), _mmmm_bbbb_ssss_tttt_rrrr_iiii_nnnn_gggg(3C), _mmmm_bbbb_rrrr_ssss_tttt_rrrr_iiii_nnnn_gggg(3S), _ssss_eeee_tttt_llll_oooo_cccc_aaaa_llll_eeee(3C),
- _eeee_nnnn_vvvv_iiii_rrrr_oooo_nnnn(5).
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 3333
-
-
-
-